package com.hx.haowumall.haowumallauthserver.feign;

import com.hx.common.utils.R;

import com.hx.haowumall.haowumallauthserver.vo.UserLoginVo;
import com.hx.haowumall.haowumallmember.vo.MemberLoginVo;
import com.hx.haowumall.haowumallauthserver.vo.SocialUserVo;
import com.hx.haowumall.haowumallauthserver.vo.UserRegistVo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("haowumall-member")
public interface MemberFeignService {
    @PostMapping("/haowumallmember/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/haowumallmember/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/haowumallmember/member/oauth2/login")
    R oauthlogin(@RequestBody SocialUserVo socialUserVo) throws Exception;

}
